package com.hl.toolkit.server.tycoin.trate.slaveentity;

import com.tycoin.common.entity.AbstractEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 挂单表
 */
@Entity
@Table(name = "tycoin_trade_order")
public class TycoinTradeOrder    extends AbstractEntity implements java.io.Serializable {
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -6887125298651135926L;

	@Column(name = "user_id")
	private String userId;
	
	@Column(name = "money")
	private BigDecimal money;
	
	@Column(name = "num")
	private BigDecimal num;
	
	@Column(name = "sum_money")
	private BigDecimal sumMoney;
	
	
	@Column(name = "payment_time")
	private Date paymentTime;	
	
	
	@Column(name = "type")
	private int type;//买1，卖2
	
	@Column(name = "plan_type")
	private int planType;//计划类型，1市价，2限价
	
	@Column(name = "coin_type")
	private String coinType;//币种
	
	@Column(name = "from_user_id")
	private String fromUserId;//对方Id
 
	
	@Column(name = "status")
	private int status;//0挂单，1完成，2撤销


	public String getUserId() {
		return userId;
	}


	public void setUserId(String userId) {
		this.userId = userId;
	}


	public BigDecimal getMoney() {
		return money;
	}


	public void setMoney(BigDecimal money) {
		this.money = money;
	}


	public BigDecimal getNum() {
		return num;
	}


	public void setNum(BigDecimal num) {
		this.num = num;
	}


	public BigDecimal getSumMoney() {
		return sumMoney;
	}


	public void setSumMoney(BigDecimal sumMoney) {
		this.sumMoney = sumMoney;
	}


	public Date getPaymentTime() {
		return paymentTime;
	}


	public void setPaymentTime(Date paymentTime) {
		this.paymentTime = paymentTime;
	}


	public int getType() {
		return type;
	}


	public void setType(int type) {
		this.type = type;
	}


	public int getPlanType() {
		return planType;
	}


	public void setPlanType(int planType) {
		this.planType = planType;
	}


	public String getCoinType() {
		return coinType;
	}


	public void setCoinType(String coinType) {
		this.coinType = coinType;
	}


	public String getFromUserId() {
		return fromUserId;
	}


	public void setFromUserId(String fromUserId) {
		this.fromUserId = fromUserId;
	}


	public int getStatus() {
		return status;
	}


	public void setStatus(int status) {
		this.status = status;
	}


	public TycoinTradeOrder(String userId, BigDecimal money, BigDecimal num, BigDecimal sumMoney, Date paymentTime,
			int type, int planType, String coinType, String fromUserId, int status) {
		super();
		this.userId = userId;
		this.money = money;
		this.num = num;
		this.sumMoney = sumMoney;
		this.paymentTime = paymentTime;
		this.type = type;
		this.planType = planType;
		this.coinType = coinType;
		this.fromUserId = fromUserId;
		this.status = status;
	}


	public TycoinTradeOrder() {
		super();
	}
 
 

	 
	
	
	

}
